import { IllnessTime } from '@/enums'
import { timeOptions, consultOptions } from '@/services/constants'
// 格式化患病时长
export const formatIllnessTime = (time: IllnessTime) => {
  return timeOptions.find((item) => item.value === time)?.label
}
// 格式化是否就诊过
export const formatConsultFlag = (flag: 0 | 1) => {
  return consultOptions.find((item) => item.value === flag)?.label
}
